<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
		<input type="text" v-model.number="age"/>
		<input type="text" v-model.trim="msg"/>
		<input type="text" v-model.lazy="name">
		<button @click="handle">提交</button>
	</div>

	
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
				age:18,
				msg:'Tom',
				name:''
            },methods:{
					handle:function(){
						console.log(typeof(this.age),this.msg.length,this.name)
					}
			}
        })
    </script>
</body>

</html>